from selenium.webdriver.common.by import By

from base import BaseAction


class LoginPageHome(BaseAction):
    #     定义元素
    mobile_ele = By.XPATH, "//div[@placeholder='请输入手机号']/input"
    pwd_ele = By.XPATH, "//div[@placeholder='请输入密码']/input"
    login_button_ele = By.CLASS_NAME, 'zh_postForm'
    
    def get_mobile_ele(self):
        return self.get_element(self.mobile_ele)

    def get_pwd_ele(self):
        return self.get_element(self.pwd_ele)

    def get_login_button_ele(self):
        return self.get_element(self.login_button_ele)
